import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {Routes, RouterModule} from '@angular/router';
import {IonicModule} from '@ionic/angular';
import {GestureLockPage} from './gesture-lock.page';
import {LeaveGuard} from '../../guards/leave.guard';

const routes: Routes = [
  {
    path: '',
    component: GestureLockPage,
    canDeactivate: [LeaveGuard] // 限制离开页面
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes)
  ],
  declarations: [GestureLockPage]
})
export class GestureLockPageModule {
}
